﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GoDive.Contract;

namespace GoDive.App
{
    public class HomeViewModel
    {

        private IList<tbanner> _banners;
        public IList<tbanner> Banners
        {
            get
            {
                if (_banners == null)
                {
                    _banners = new List<tbanner>();
                }
                return _banners;
            }
            set
            {
                this._banners = value;
            }
        }

        private IList<tdivesite> _diveSites;
        public IList<tdivesite> DiveSites
        {
            get
            {
                if (_diveSites == null)
                {
                    _diveSites = new List<tdivesite>();
                }
                return _diveSites;
            }
            set
            {
                this._diveSites = value;
            }
        }

        private IList<tdestination> _destinations;
        public IList<tdestination> Destinations
        {
            get
            {
                if (_destinations == null)
                {
                    _destinations = new List<tdestination>();
                }
                return _destinations;
            }
            set
            {
                this._destinations = value;
            }
        }

        public bool ArticleHasNextPage { get; set; }
        public bool ArticleHasPrevPage { get; set; }
        public int ArticlePageIndex { get; set; }

        private IEnumerable<tarticle> _articles;
        public IEnumerable<tarticle> Articles
        {
            get
            {
                if (_articles == null)
                {
                    _articles = new List<tarticle>();
                }
                return _articles;
            }
            set
            {
                this._articles = value;
            }
        }

    }
}